//
//  HomeCollectionView.h
//  BaseProject
//
//  Created by 王洋 on 2021/3/9.
//  Copyright © 2021 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "HomeModel.h"
#import "XLPageViewController.h"

#import "TT_BaseCollectionView.h"

NS_ASSUME_NONNULL_BEGIN


typedef NS_ENUM(NSInteger, HomeCollectionViewActionType) {
    //广告
    HomeCollectionViewActionType_AD,
    //新用户页面
    HomeCollectionViewActionType_NewFree,
    //推荐官
    HomeCollectionViewActionType_Recommner,
    //
    HomeCollectionViewActionType_PlatformEquity,//PlatformEquityViewController

    
};

@interface HomeCollectionView : UIView

@property (nonatomic ,assign) BOOL canScroll;

@property (nonatomic , strong) TT_BaseCollectionView *collectionView;

@property (nonatomic, strong) XLPageViewController *pageViewController;

@property (nonatomic, strong) HomeModel *homeModel;

@property (nonatomic, copy) void(^HomeCollectionViewBlock)(HomeCollectionViewActionType type, HomeADItemEventModel *jumpModel);


- (void)fillWithModel:(HomeModel *)model;

-(void)subTabViewCanScroll:(BOOL)canScroll;
@end

NS_ASSUME_NONNULL_END
